import type { blockMode } from '@/stores/block'
import { request } from '@/utils'

export function putBlockMode(data: { code: string | number; mode: blockMode }) {
  return request({
    url: '/robot-remote-control/patrolling-change-handling-obstacle-mode/v1',
    method: 'put',
    data
  })
}
